package com.ruoyi.management.helper;

/**
 * @Author 张广宇
 * @Date 2021/12/1
 * @Package com.ruoyi.management.helper
 * @Class ScoreHelper
 * @Description 获取评分
 **/
public class ScoreHelper {
    /**
     * 获取评分
     *
     * @param type 评价类型
     * @return
     */
    public static int getScore(String type) {
        switch (type) {
            case "0":
                return 10;
            case "1":
                return 5;
            case "2":
                return 0;
            case "3":
                return -5;
            default:
                return 10;
        }

    }
}
